<template>
  <div class="recommend">
    <div class="recommend-item" v-for="(item, index) in recommend" :key="index">
      <img v-lazy="item.image" class="image" />
      <div class="title">{{ item.title }}</div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    recommend: Array
  }
}
</script>

<style lang="less" scoped>
.recommend {
  display: flex;
}
.recommend-item {
  flex: 1;
  text-align: center;
  color: var(--font-color);
}
.image {
  width: 60px;
  height: 60px;
}
.title {
  font-size: 12px;
  font-weight: 700;
  line-height: 35px;
}
</style>
